package com.hunan.api.catv.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 修改大屏设置记录
 * </p>
 *
 * @author jiangzhuan
 * @since 2021-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member_tv_set_record")
public class MemberTvSetRecord extends Model<MemberTvSetRecord> {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer memberId;

    /**
     * 修改描述补充
     */
    private String modifyDescription;

    /**
     * 修改之前
     */
    private String modifyBefore;

    /**
     * 修改之后
     */
    private String modifyAfter;

    /**
     * 修改类型 1：开机启动模式  2：儿童模式限制时间
     */
    private Integer modifyType;

    /**
     * 逻辑删除 0:已删除 1:未删除
     */
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


    public static final String ID = "id";

    public static final String MEMBER_ID = "member_id";

    public static final String MODIFY_DESCRIPTION = "modify_description";

    public static final String MODIFY_BEFORE = "modify_before";

    public static final String MODIFY_AFTER = "modify_after";

    public static final String MODIFY_TYPE = "modify_type";

    public static final String DELETED = "deleted";

    public static final String CREATE_TIME = "create_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
